Skip to content

feat: Add code quality findings support#4330

Merged
gmlewis merged 1 commit into
google:masterfrom
Andrei-hub11:feat/code-quality-findings
Jun 25, 2026
Merged

feat: Add code quality findings support#4330
gmlewis merged 1 commit into
google:masterfrom
Andrei-hub11:feat/code-quality-findings

Conversation

@Andrei-hub11

Copy link
Copy Markdown
Contributor

Adds support for the REST Code Quality findings endpoints in go-github.

This includes ListFindings and GetFinding on CodeQualityService, the finding data models, unit tests, generated accessors, a pagination iterator, and manual metadata entries in openapi_operations.yaml so the change stays aligned with the project's documentation and code generation patterns.

Closes: #4327

@google-cla

google-cla Bot commented Jun 25, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gmlewis gmlewis changed the title feat: add code quality findings support feat: Add code quality findings support Jun 25, 2026
@Andrei-hub11 Andrei-hub11 force-pushed the feat/code-quality-findings branch from 1f70f5b to 2d481e2 Compare June 25, 2026 01:45
Comment thread openapi_operations.yaml Outdated
- name: POST /hub
documentation_url: https://docs.github.com/webhooks/about-webhooks-for-repositories#pubsubhubbub
- name: GET /organizations/{organization_id}
- name: GET /repos/{owner}/{repo}/code-quality/findings

@gmlewis gmlewis Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be hand-edited, so you will need to revert the changes to this file.

I'm on my phone now, but tomorrow I can update this file in a separate PR which you can then pull into this PR so we can move forward with it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got confused because one of the CI scripts seems to require this. Maybe I missed something.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I have now merged #4331 so you should be able to switch to the master branch, perform a git pull and then switch back to this PR's branch and git merge master and then hopefully you will be able to discard all local changes you made to this file (choose ALL the remote changes when you get a merge conflict). Please let me know if you need help. (It would actually be easier if you REVERT all the changes to this file BEFORE you git merge master into this PR.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've rebased this branch on top of master. @gmlewis

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Jun 25, 2026
@Andrei-hub11 Andrei-hub11 force-pushed the feat/code-quality-findings branch from 2d481e2 to 681fa0f Compare June 25, 2026 02:18
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.48%. Comparing base (93679ac) to head (85da624).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4330   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         193      193           
  Lines       19400    19440   +40     
=======================================
+ Hits        18912    18952   +40     
  Misses        270      270           
  Partials      218      218           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Andrei-hub11 Andrei-hub11 force-pushed the feat/code-quality-findings branch from 681fa0f to c87d53b Compare June 25, 2026 03:09
Comment thread github/code_quality.go
@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Jun 25, 2026

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Andrei-hub11 and @alexandear!
LGTM.
Merging.

@gmlewis gmlewis merged commit 8a83da7 into google:master Jun 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for code quality findings

3 participants